← Back to issue list

snapcraft create-key doesn't require login, but snapcraft list-keys does

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1637625
Type
issue
State
open
Author
~elopio
Labels
store
Created
2016-10-28 19:39:36.872156+00:00
Updated
2016-10-28 19:39:36.872156+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

You can call snapcraft create-key without having logged in. The problem is that then you can see the key you have just created without logging in. This is a weird situation. And it might make people suspicious, because why do you need the network to query for a local key. To reproduce: $ snapcraft logout $ snapcraft create-key $ snapcraft list-keys No valid credentials found. Have you run "snapcraft login"? Invalid credentials: Root macaroon not in the config file. I think that the login is requested to check if the local keys have been registered in the server. If that is the case, maybe we can print that it's required to login to check the registered keys in the server.

Evaluation history

No evaluation history available.